package com.jxwifi.cloud.quickcleanserver.presenter;

import com.jxwifi.cloud.quickcleanserver.app.UrlPool;
import com.jxwifi.cloud.quickcleanserver.model.AuzImpl;
import com.jxwifi.cloud.quickcleanserver.okhttp.Params;
import com.jxwifi.cloud.quickcleanserver.view.CleaningSexView;

public class CleaningSexPresenter {

    private AuzImpl mAuz;
    private CleaningSexView mView;

    public CleaningSexPresenter(CleaningSexView mview){
        this.mView=mview;
        mAuz=new AuzImpl();
    }

    public void doinitdata(){
        Params params=new Params();
        params.add("sex",mView.getWorkStatus());
        mAuz.auzpost(UrlPool.POST_UPDATE_PROFILE, params, new AuzImpl.AuzListener() {
            @Override
            public void AuzSuccess(int code, String data) {
                mView.onSuccess(code, data);
            }

            @Override
            public void AuzFailure(int errorCode, String msg) {
                mView.onFailure(errorCode, msg);
            }
        });
    }

}
